home *** CD-ROM | disk | FTP | other *** search
/ Internet Pratique / Internet Pratique 01.iso / pc / Mac / LOGICIELS / DOSSIERS / MACAST10 / MACAST Documentation / Plugin Development / MACAST_Events.h < prev    next >
C/C++ Source or Header  |  1999-08-31  |  1KB  |  64 lines

  1. #pragma once
  2.  
  3. enum {
  4.     evt_FIRST_EVENT        = 1310,
  5.     
  6.     evt_PlayStarted,
  7.     evt_PlayStopped,
  8.     evt_PlayToggle,
  9.     evt_TrackDone,
  10.     evt_AddItem,                            // add item to playlist, ioData = FSSpecPtr
  11.     evt_AddRawItem,                            // add item to playlist, ioData = STableItem*
  12.     evt_NextTrack,
  13.     evt_PrevTrack,
  14.     
  15.     evt_SavePlaylist,
  16.     evt_LoadPlaylist,
  17.     evt_ClearPlaylist,
  18.     evt_ClearSong,
  19.     evt_RememberPlaylist,                    // auto-save on quit only
  20.     evt_ProcessKeyDown,                        // ioData = char code
  21.     
  22.     evt_SortPlaylistByName,
  23.     evt_SortPlaylistByTime,    
  24.     evt_SortPlaylistByType,
  25.     
  26.     evt_SaveContext,                        // save objects context before skin change            
  27.     evt_RestoreContext,                        // restore objects context after skin change
  28.     
  29.     evt_Minimize,
  30.     evt_Maximize,
  31.     
  32.     evt_PlaylistCollapse,
  33.     evt_PlaylistExpand,
  34.  
  35.     evt_GetTrackInfo,
  36.     evt_RefreshItem,
  37.  
  38.     evt_ID3,                                // ioData = ID3InfoPtr
  39.     
  40.     evt_Suspend,                            // suspend app services on EnterFullScreen() VP hook
  41.     evt_Resume,                                // resume app services on EnterFullScreen() VP hook
  42.     
  43.     // This are custom event your plugins may use to communicate with each other.
  44.     evt_Custom,                                // ioData = CustomEventPtr!!
  45.     
  46.     evt_LAST_EVENT
  47. };
  48.  
  49. typedef struct
  50. {
  51.     Str255    title;
  52.     Str255    author;
  53.     Str255    album;
  54.     Str255    genre;
  55.     Str32    year;
  56.     Ptr        lyrics;
  57. } ID3Info, *ID3InfoPtr;
  58.  
  59. typedef struct
  60. {
  61.     OSType    family;        // custom event family id. may as well be your plugin author id
  62.     OSType    id;            // custom event id
  63.     Ptr        data;        // ptr pointing to event data
  64. } CustomEventRec, *CustomEventRecPtr;